package com.neusoft.neuiotms.dcvm.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.neusoft.bizcore.web.jpa.model.AbstractModel;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "dcvm_mock")
public class Mock extends AbstractModel {
    private static final long serialVersionUID = 1L;

    /** 模拟API */
    @NotNull(message = "模拟API不能为空")
    @Column(length = 255, nullable = false, unique = true)
    private String api;

    /** 模拟数据 */
    @NotNull(message = "模拟数据不能为空")
    @Lob
    @Column(nullable = false)
    private String data;

    /** API描述 */
    @NotNull(message = "API描述不能为空")
    private String description;

}
